feat(analytics): attribute Claude Desktop sessions by repository and branch - #447
Open
mykolanehrych wants to merge 1 commit into
Open
feat(analytics): attribute Claude Desktop sessions by repository and branch#447mykolanehrych wants to merge 1 commit into
mykolanehrych wants to merge 1 commit into
Conversation
…branch Resolve and attribute the correct repository/branch per Claude Desktop session (TCP process lookup, per-request X-CodeMie-Repository header, session-to-repository map with await-poll, X-CodeMie-Branch header injection), fix Cowork vs Code tab session attribution and branch fallback, add api-key auth support for local dev/Code integration sessions, rename Desktop sandbox repository label to 'Cowork', and harden --add-dir path handling and lsof/repo-resolution logic. Ref: EPMCDME-12687
mykolanehrych
force-pushed
the
EPMCDME-12687
branch
from
July 28, 2026 11:25
f449fce to
f52c76c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds accurate repository/branch attribution for Claude Desktop sessions in CodeMie Analytics, and adds api-key based auth support for local Code/Desktop proxy integrations.
Before
After
Changes
X-CodeMie-Repositoryheader, session-to-repository map with await-poll)X-CodeMie-Branchheader for Claude Desktop session attributionClaude Desktop/DefaulttoCowork--add-dirpath handling (reject non-absolute paths, lazy regex) and consolidatelsof/repo-resolution logicImpact
Claude Desktop sessions are now attributed to the correct repository and branch in analytics instead of falling back to defaults, and local dev/Code integrations can authenticate via api key.
Checklist
Ref: EPMCDME-12687